package com.echoesnet.echoesshortvideo.ViewModels;

import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModel;

import com.echoesnet.echoesshortvideo.Beans.PublishVideoBean;
import com.echoesnet.echoesshortvideo.Beans.PublishVideoProgressBean;
import com.echoesnet.echoesshortvideo.Repositories.MainRepository;

/**
 * Copyright (C) 2017 在线回声（天津）科技发展有限公司
 * 在线回声完全享有此软件的著作权，违者必究
 *
 * @author an
 * @version 1.0
 * @modifier
 * @createDate 2018/4/23 0023
 * @description
 */
public class MainModel extends ViewModel
{
    private LiveData<PublishVideoProgressBean> data;
    private MainRepository mainRepository;

    public MainModel()
    {
        mainRepository = new MainRepository();
    }

    public LiveData<PublishVideoProgressBean> publishVideo(PublishVideoBean publishVideoBean)
    {
            data = mainRepository.publishVideo(publishVideoBean);
        return data;
    }
}
